package org.jeecgframework.web.service;
import java.io.Serializable;
import java.util.List;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsInvoiceInfoEntity;

public interface CbsInvoiceInfoServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(CbsInvoiceInfoEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(CbsInvoiceInfoEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(CbsInvoiceInfoEntity t);

    public List<CbsInvoiceInfoEntity> getTopInvoiceByUser(String userName, String type,int top);

    /**
     * 保留发票副本
     * @param invoice
     * @return snapInvoice
     */
    public CbsInvoiceInfoEntity snapInvoiceInfo(CbsInvoiceInfoEntity invoice);


    public List<CbsInvoiceInfoEntity> getTopInvoiceByCinema(String cinemaId,String type,int top);

    public boolean checkCanDoAdd(CbsInvoiceInfoEntity invoice);

}
